Adequate Testing of Aspect - Oriented Programs *

نویسندگان

  • Michael Mortensen
  • Roger T. Alexander
چکیده

Aspect-oriented programming supports the separation of concerns into traditional core concerns and cross-cutting aspects. Aspects typically contain new code fragments that are introduced to the system (such as advice or introductions) and a means of quantification that specifies where these code fragments are to be inserted. Although powerful, aspect-oriented programming includes new sources for program faults. These faults may be due to errors in the aspect-based code fragments or in the quantification directives. To address both sources of error, we propose combining two traditional techniques to adequately test aspect-oriented software: white box coverage and mutation testing. We use static analysis of an aspect within a system to guide in the selection of white box criteria for an aspect (such as statement coverage, context coverage, and def-use coverage) that will determine if a test suite is adequately testing the new code fragments. In addition, we provide a set of mutation operators to evaluate if a test suite is sufficiently sensitive to find errors in pointcuts and aspect precedence. Together, coverage criteria and mutation testing provide a framework for defining adequate testing of aspect-oriented programs.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

An Approach for Adequate Testing of AspectJ Programs

Aspect-oriented programming supports the separation of concerns into traditional core concerns and cross-cutting aspects. Aspects typically contain new code fragments that are introduced to the system (such as advice or introductions) and a means of quantification that specifies where these code fragments are to be inserted. This mechanism introduces new sources for program faults, due to error...

متن کامل

Automated State-Based Unit Testing for Aspect-Oriented Programs: A Supporting Framework

Interactions between aspects and classes are a new source for faults. Existing objectoriented testing techniques are not adequate for testing aspect-oriented programs. As a consequence, new testing techniques must be developed. We present, in this paper, a state-based unit testing technique for aspect-oriented programs and associated tool (AJUnit). The technique focuses on the integration of on...

متن کامل

Integration testing of aspect-oriented programs: a characterization study to evaluate how to minimize the number of stubs

A problem related to the integration test of object-oriented programs is the order that classes are integrated and tested. This problem also appears in aspect-oriented programs. The incremental integration strategy, which suggests that classes are tested first and then integrated to the aspects, is often proposed as the more adequate strategy to integrate classes and aspects. This work presents...

متن کامل

Towards Semantic Mutation Testing of Aspect-Oriented Programs

Aspect-oriented programs have received much attention from software testing researchers. Various testing techniques and approaches have been proposed to tackle issues and challenges when testing aspect-oriented programs including traditional mutation testing. In traditional mutation testing of aspect-oriented programs, mutants are generated by making small changes to the syntax of the aspect-or...

متن کامل

An Approach to Test Aspect-oriented Programs

challenges is aspect-oriented paradigm, which has a dichotomy of core and crosscutting concerns. Since emergent behavior of the aspects during their interaction with objects, and inter dependencies not only incurring challenges for testing, but also alludes to creation of innovative testing techniques. Several faults are introduced by aspects. In this paper, we have surveyed all the existing te...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2004